using System;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Auto.Components;

namespace BaseSystem._System
{
    public partial class SearchUsers : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitPage();
            }
        }
        private void InitPage()
        {
            this.UcDivEmp1.TreeInit();
        }

        protected void btnGetValue_Click(object sender, EventArgs e)
        {
            IDictionary<string, string> checkNode = this.UcDivEmp1.CheckedNodes;
            string result = string.Empty;
            foreach (KeyValuePair<string, string> node in checkNode)
            {
                result += node.Key + ",";
            }
            Jscript.AjaxRunJs(this, string.Format("SetEmpValue('{0}');", result.TrimEnd(',')));
        }
    }
}
